// Copyright (c) 2020 Presto Labs Pte. Ltd.
// Author: donggu
#include <iostream>
#include <string>

#include "coin2/base/time.h"

int main() {
  std::string ts;
  std::cin >> ts;

  int64_t epoch = TimestampFromString(ts);
  std::cout << "  epoch : " << epoch << std::endl;
  std::cout << "iso8601 : " << Iso8601FromTimestamp(epoch) << std::endl;
  return 0;
}
